﻿<%@ Control Language="c#" AutoEventWireup="false"  Inherits="Web.Control.WWW.Answers.Default" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("AS001")%></h1>
							</div>
							<div class="submenuN_button" style="top:30"><a href="/answers/ask.htm" class="Naddbtn btnspec" style="text-decoration:none"><span><%=GetText("AS002")%></span></a></div>
						</div>
					</div>
				</div>
				<div>
					<ul class="sort_sel">
						<li id="spanQuesType1" class="selATags first"  style="cursor:pointer"><span><a href="<%=LoginHost%>/answers/learn--/1-1.htm"><%=GetText("C2013")%></a></span></li>
						<li id="spanQuesType2" class=""  style="cursor:pointer"><span><a href="<%=LoginHost%>/answers/learn--/2-1.htm"><%=GetText("AS017")%></a></span></li>
						<li id="spanQuesType3" class=""  style="cursor:pointer"><span><a href="<%=LoginHost%>/answers/learn--/3-1.htm"><%=GetText("C2002")%></a></span></li>
					</ul>
					<div class="clear"></div>
					<!--popular latest-->
				</div>
				<div class="Center9001n">
					<div class="Center9001right">
						<div class="center9001content">
						<div class="list_area">
							<div class="alist_select" id="askQuestype1">
								<div class="floatl"><%=GetText("C0016")%> <select id="Learning1" class="common180" name="Learning"onchange="searl('<%=Dtype%>')"><option value="all" selected><%=GetText("C0028")%></option><%=GetLanguageSelect(Learn)%></select>&nbsp;&nbsp;&nbsp;&nbsp;<%=GetText("AS091")%> <select id="Using1" class="common180" name="Learning"onchange="searl('<%=Dtype%>')"><option value="all" selected><%=GetText("C0028")%></option><%=GetLanguageSelect(BaseL)%></select></div>
								<div class="floatr"><%=GetText("AS143",new string[]{RecordCount.ToString()})%></div>
								<div class="clear"></div>
							</div>
							<div id="divAskQuesList" class="alist">
								<asp:Repeater ID="repQuest" runat="server">
									<ItemTemplate>
									<div class="alist_list">
										<div class="floatl wid65"><div class="pic50"><a class="photo_50" href="<%#LoginHost %>/<%#Eval("MemberNo") %>.htm" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Nickname").ToString())%>"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div></div>
										<div class="floatr alist_content">
											<span class="text14"><a href="<%#LoginHost %>/answers/question/<%#Eval("QuestionID") %>.htm" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%>"><img src="<%#QStatusImage(Eval("Status").ToString())%>" border="0" align="absmiddle" /></a> <a href="<%#LoginHost %>/answers/question/<%#Eval("QuestionID") %>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%></a></span>
											<p class="grey11"><%#BLF.StaticData.HaveLanguageImage(Eval("LanguageLearn").ToString()) ? Eval("LanguageLearn", "<a href='" + LoginHost + "/answers/learn-" + Eval("LanguageLearn") + "-all/1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' title='" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString()) }) + "' align='absmiddle' /></a>") : ""%> <a href='<%#LoginHost %>/answers/learn-<%#Eval("LanguageLearn")%>-all/1-1.htm'><%#GetText("C0105",new string[]{BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString())})%></a>&nbsp;&nbsp;<%#GetText("AS063", new string[] { "<a href='"+LoginHost+"/" + Eval("MemberNo") + ".htm'>" + Eval("Nickname") + "</a>" })%>  - <%#GetText("AS142",new string[]{Eval("AnswerCount").ToString()})%> - <%#FormatDiffDate(GetText("C0037"), Eval("DiffLastUpdate").ToString())%></p>
										</div>
										<div class="clear"></div>
									</div>
									</ItemTemplate>
								</asp:Repeater>
							</div>
							<div id="divAskQuesPager" class="page_num">
										<%=CreatePageNav(RecordCount, 15, pageIndex,
									"",string.Format("<span class='page_none grey10'><a href='{4}/answers/learn-{1}-{2}/{0}-$I$.htm'>{3}</a></span>&nbsp;", HttpUtility.UrlEncode(Dtype.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(BaseL), HttpUtility.UrlEncode(GetText("Prev")),LoginHost),
									"",string.Format("<span class='page_none grey10'><a href='{4}/answers/learn-{1}-{2}/{0}-$I$.htm'>{3}</a></span>&nbsp;", HttpUtility.UrlEncode(Dtype.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(BaseL), HttpUtility.UrlEncode(GetText("Next")),LoginHost),
									string.Format("<span class='page_select'>{0}</span>&nbsp;",pageIndex),
									string.Format("<span class='page_none grey10'><a href='{3}/answers/learn-{1}-{2}/{0}-$I$.htm'>$I$</a></span>&nbsp;", HttpUtility.UrlEncode(Dtype.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(BaseL),LoginHost))%>   
							</div>
						</div>
						</div>
					</div>
					<div class="Center9001Left">
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2014")%></h4>
								<div class="layer_contentA5">
									<ul class="common_right">
									<asp:Repeater ID="rptLL" runat="server">
											<ItemTemplate>										
												<li><a href='<%=LoginHost%>/answers/learn-<%#Eval("LanguageValue")%>-all/1-1.htm' title="<%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%>"><img src='/images/language_<%#Eval("LanguageValue")%>.gif' align='absmiddle' /></a> <a href='<%=LoginHost%>/answers/learn-<%#Eval("LanguageValue")%>-all/1-1.htm'><%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%></a></li>
											</ItemTemplate>
									</asp:Repeater>
									</ul>
									<p align="right"><a href="<%=LoginHost%>/answers/categories.htm"><%=GetText("C0028")%></a></p>
								</div>
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2001")%></h4>
								<div class="layer_contentA5">
									<ul class="tag_common_right">		
									<asp:Repeater ID="repTags" runat="server">
										<ItemTemplate>
											<li><a href="<%#LoginHost%>/answers/tag/<%#Eval("TagName")%>-1.htm"><%#Eval("TagName")%></a></li>
											</ItemTemplate>
									</asp:Repeater>
									</ul>
									<div class="clear"></div>
									<p align="right"><a href="<%=LoginHost%>/answers/tag/"><%=GetText("AS111")%></a></p>
								</div>
							</div>
						</div>
						<div class="ad_site margin20T">
							<script type="text/javascript">
							  GA_googleFillSlot("all_pages_right160x600");
							</script>
						</div>
					</div>
					<div class="clear"></div>
					<div class="margin10" style="text-align:center">
					<script type="text/javascript">
					  GA_googleFillSlot("all_pages_bottom728x90");
					</script>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
setTypeTab("<%=Dtype %>");
var lhost="<%=LoginHost %>";
</script>
